package server;

import java.security.KeyPair;

import rsa.RsaTools;

public class Server {
	
	public static KeyPair serverKeyPair;
	
	public static void main(String[] args) {
		ClientKeys keys = new ClientKeys();
		keys.readKeys();
		RsaTools rsaTools = new RsaTools();
		serverKeyPair = rsaTools.checkRSAKeyPair("src//ssl//serverData//sKey.asc");
		for(int i=0; i<keys.keys.size();i++) {
			System.out.println("Bekannter Benutzer: " + keys.keys.get(i).username);
		}
		
		ServerRSAConnection rsaConn = new ServerRSAConnection(serverKeyPair);
		rsaConn.start();
		
		ServerSSLConnection sslConn = new ServerSSLConnection(serverKeyPair);
		sslConn.start();
		
		while(true);
	}
}
